<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title><?php echo ($seo["title"]); ?></title>
<meta http-equiv="x-ua-compatible" content="ie=7" />
<meta name="keywords" content="<?php echo ($seo["keys"]); ?>" />
<meta name="description" content="<?php echo ($seo["desc"]); ?>" />
<?php if(is_array($sty)): $i = 0; $__LIST__ = $sty;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$styshow): $mod = ($i % 2 );++$i;?><link href="__TMPL__Public/css/<?php echo ($styshow); ?>.css" type="text/css" rel="stylesheet" /><?php endforeach; endif; else: echo "" ;endif; ?>
<script src="__PUBLIC__/statics/js/jquery/jquery-1.7.2.min.js"></script>
<script src="__PUBLIC__/statics/js/ThinkAjax.js"></script>
<script src="__TMPL__Public/js/index.js?1"></script>
<style type="text/css">
.op .in{display:none}
.op .out{display:none}
</style>

<script>
$(document).ready(function(){
	//登录
	var id = $.cookie('id');
	var username =$.cookie('name');
	if(id > 0){
		$(".op .in").show();
		if(username != ''){
			$('#username').text(username);
		}
	}else{
		$(".op .out").show();
	}
	//搜索
	var web_path=$('#web_path').text();
	<?php if(isset($album)): ?>$('.search #album').addClass('cur').siblings().removeClass('cur');
		$(".search form").attr('action',web_path+'index.php?a=album&m=Search&g=Home');
		$('#a').val('album');<?php endif; ?>
	
	$(".search li").click(function(){
		$(this).addClass('cur').siblings().removeClass('cur');
		var a = $(this).attr('id');
		$(".search form").attr('action',web_path+'index.php?a='+a+'&m=Search&g=Home');
		$('#a').val(a);
	})

	var key = $(".btn_txt").attr('placeholder');
	
	$(".search_btn_txt").focus(function(){
		if($(".search_btn_txt").val() == key){
			$(this).val('');
		}
	});
	
	$(".search_btn_txt").blur(function(){
		if($(".search_btn_txt").val() == ''){
			$(this).val(key);
		}
	});
});
$(function(){
		var nav_top = $('.nav_offsetTop').offset().top; 
		$show_nav = function() {
		var st = $(document).scrollTop();
		if(st > nav_top){
			$("#header_fixed").show();
		}else{
			$("#header_fixed").hide();
		}
	};
	$(window).bind("scroll", $show_nav);
})
$(function(){
	var nav_top = $('.nav_offsetTop').offset().top; 
	var st = $(document).scrollTop();
	if(st > nav_top){
		$("#header_fixed").show();
	}else{
		$("#header_fixed").hide();
	}
})
</script>

</head>
<body>
<div id="web_path" style="display:none;"><?php echo C('web_path');?></div>
  <div class="nav_main" id="header_fixed">
    <div class="fm970">
      <ul class="fl cl">
        <li class=<?php if('index' == $curpage): ?>cur<?php endif; ?>><a href="<?php echo C('site_domain');?>">首页</a></li>
		<li class=<?php if('album' == $curpage): ?>cur<?php endif; ?>><a href="<?php echo get_url('index','','album');?>">专辑</a></li>
		<?php if(is_array($p_cate_list)): $i = 0; $__LIST__ = $p_cate_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vop): $mod = ($i % 2 );++$i;?><li class=<?php if($vop['id'] == $id): ?>cur<?php endif; ?>><a href="<?php echo get_url('index',$vop['id'],'cate');?>"><?php echo ($vop["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
      </ul>
      <ul class="op">
			<li class="out"><a href="<?php echo get_url('register','','user');?>"><b>注册</b></a>|<a href="<?php echo get_url('login','','user');?>"><b>登录</b></a></li>
			<li class="out"><a class="t_sina" href="<?php echo get_url('sinalogin','','user');?>" target="_blank"><i>微博登录</i></a></li>
			<li class="out"><a class="t_qz" href="<?php echo get_url('qqlogin','','user');?>" target="_blank"><i>QQ登录</i></a></li>
			<li class="out"><a class="t_tb" href="<?php echo get_url('taobaologin','','user');?>" target="_blank"><i>淘宝登录</i></a></li>

			<li class="in">欢迎您<a href="<?php echo get_url('index','','user');?>"><b id="username"><?php echo ($nav_user_info["name"]); ?></b></a></li>
			<li class="in"><a href="<?php echo get_url('release','','user');?>"><i>发布分享</i></a></li>
	        <li class="in"><a href="<?php echo get_url('account','','user');?>">个人设置</a></li>
			<li class="in" ><a href="<?php echo get_url('logout','','user');?>">退出</a></li>		
      </ul>
    </div>
    <div class="clear"></div>
  </div>

<div class="header">
  <div class="info_bar">
   <div class="fm970">
       <h1 class="logo"></h1>
      <div class="search">
        <ul>
          <li class="cur" id="index">单品</li>
          <li class="" id="album">专辑</li>
        </ul>
        <div class="data s_item">
		 <form action="<?php echo get_url('index','','search');?>" method="get">
		 	<input id="a" name="a" type="hidden" value="index">
			<input name="m" type="hidden" value="Search">
			<input name="g" type="hidden" value="Home">
			<input type="text" name="keywords" class="btn_txt search_btn_txt" id="keywd" value="<?php if(isset($keywords)): echo ($keywords); else: echo C('default_kw'); endif; ?>" placeholder="<?php echo C('default_kw');?>" autoComplete= "Off"/>
			<input type="image" src="__TMPL__Public/img/btn_search.gif"/>
		 </form>
        </div>
      </div>
      <div class="au_box">
		<div class="nav_sina_fo_btn fl">
<!-- Baidu Button BEGIN -->
    <div id="bdshare" class="bdshare_b" style="line-height: 12px;"><img src="http://share.baidu.com/static/images/type-button-5.jpg" />
		<a class="shareCount"></a>
	</div>
<script type="text/javascript" id="bdshare_js" data="type=button" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
	document.getElementById("bdshell_js").src = "http://share.baidu.com/static/js/shell_v2.js?cdnversion=" + new Date().getHours();
</script>
<!-- Baidu Button END -->
         </div>
	  </div>
    </div>
  </div>
  <div class="nav_main nav_offsetTop">
    <div class="fm970">
      <ul class="fl cl">
        <li class=<?php if('index' == $curpage): ?>cur<?php endif; ?>><a href="<?php echo C('site_domain');?>">首页</a></li>
		<li class=<?php if('album' == $curpage): ?>cur<?php endif; ?>><a href="<?php echo get_url('index','','album');?>">专辑</a></li>
		<?php if(is_array($p_cate_list)): $i = 0; $__LIST__ = $p_cate_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vop): $mod = ($i % 2 );++$i;?><li class=<?php if($vop['id'] == $id): ?>cur<?php endif; ?>><a href="<?php echo get_url('index',$vop['id'],'cate');?>"><?php echo ($vop["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
      </ul>
      <ul class="op">
			<li class="out"><a href="<?php echo get_url('register','','user');?>"><b>注册</b></a>|<a href="<?php echo get_url('login','','user');?>"><b>登录</b></a></li>
			<li class="out"><a class="t_sina" href="<?php echo get_url('sinalogin','','user');?>" target="_blank"><i>微博登录</i></a></li>
			<li class="out"><a class="t_qz" href="<?php echo get_url('qqlogin','','user');?>" target="_blank"><i>QQ登录</i></a></li>
			<li class="out"><a class="t_tb" href="<?php echo get_url('taobaologin','','user');?>" target="_blank"><i>淘宝登录</i></a></li>

			<li class="in">欢迎您<a href="<?php echo get_url('index','','user');?>"><b id="username"><?php echo ($nav_user_info["name"]); ?></b></a></li>
			<li class="in"><a href="<?php echo get_url('release','','user');?>"><i>发布分享</i></a></li>
	        <li class="in"><a href="<?php echo get_url('account','','user');?>">个人设置</a></li>
			<li class="in" ><a href="<?php echo get_url('logout','','user');?>">退出</a></li>		
      </ul>
    </div>
    <div class="clear"></div>
  </div>
</div>



<div class="wrap">
  <div class="sortA clearfix">
    <div class="sortl">
	  <?php if(is_array($p_cate_list)): $i = 0; $__LIST__ = $p_cate_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vop): $mod = ($i % 2 );++$i; if($vop['id'] == $id): ?><img src="<?php echo C('web_path').ltrim($vop['img'],'/'); ?>" width="85" alt="<?php echo ($vop["name"]); ?>"><?php endif; endforeach; endif; else: echo "" ;endif; ?>
 </div>
    <div class="sortr">
      <ul>
	    <?php if(is_array($snav)): $i = 0; $__LIST__ = $snav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vsn): $mod = ($i % 2 );++$i;?><li>
          <dl>
            <dt><?php echo ($vsn["name"]); ?></dt>
            <dd>
				<?php if(is_array($vsn['tags'])): $i = 0; $__LIST__ = array_slice($vsn['tags'],0,12,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vsnt): $mod = ($i % 2 );++$i;?><a class="<?php if($vsnt['id'] == $tag_id): ?>cur<?php endif; ?>" href="<?php echo get_url('tag',$vsnt['id'],'cate');?>"><?php echo ($vsnt["name"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
			</dd>
          </dl>
        </li><?php endforeach; endif; else: echo "" ;endif; ?>
      </ul>
    </div>
  </div>
  <?php if(get_ad(3) != ''): ?><center> <div style="width:970px;height:90px;overflow:hidden;margin-bottom:15px;"><?php echo get_ad(3);?></div></center><?php endif; ?>
<div class="boxA">
<div id="cate_name" style="display:none;"><?php echo ($cate_name); ?></div>
<div id="tag_name" style="display:none;"><?php echo ($tag_name); ?></div>
<div class="imagewall_sort">
  <div class="fl t_sortby">
  	<span title="最新"><a name="new" href="<?php echo get_url(ACTION_NAME,$id,'cate','new',$price);?>" class=<?php if($sortby == 'new'): ?>"cur"<?php endif; ?>>最新</a></span> | 
  	<span title="最热"><a name="hot" href="<?php echo get_url(ACTION_NAME,$id,'cate','hot',$price);?>" class=<?php if($sortby == 'hot'): ?>"cur"<?php endif; ?>>最热</a></span>
  </div>
  <div class="fl t_price">
  	<span title="全部"><a name="0" href="<?php echo get_url(ACTION_NAME,$id,'cate',$sortby,'0');?>" class=<?php if($price == '0'): ?>"cur"<?php endif; ?>>价格</a></span> | 
  	<span  title="100元以下"><a name="100" href="<?php echo get_url(ACTION_NAME,$id,'cate',$sortby,'100');?>" class=<?php if($price == '100'): ?>"cur"<?php endif; ?>>100</a></span> | 
  	<span title="101-200元"><a name="200" href="<?php echo get_url(ACTION_NAME,$id,'cate',$sortby,'200');?>"  class=<?php if($price == '200'): ?>"cur"<?php endif; ?>>200</a></span> | 
  	<span title="201-500元"><a name="500" href="<?php echo get_url(ACTION_NAME,$id,'cate',$sortby,'500');?>"  class=<?php if($price == '500'): ?>"cur"<?php endif; ?>>500</a></span> | 
  	<span title="500元以上"><a name="501" href="<?php echo get_url(ACTION_NAME,$id,'cate',$sortby,'501');?>"  class=<?php if($price == '501'): ?>"cur"<?php endif; ?>>更高</a></span>
  </div>
</div>
 <script type="text/javascript" src="__PUBLIC__/statics/js/jquery.masonry.min.js"></script>  
<script type="text/javascript">
$(document).ready(function(){
	/**
	 *推广商品替换
	 */
	//容器
	var $container = $('#container');
	//当前页数
	var nowPage = parseInt($(".nowPage").text());
	//获取推广状态
	var spread_status=$("#spread_status").text();
	//推广标识
	var sign = true;
	//不是第一页不推广
	if(nowPage > '1' || spread_status == '0'){
		sign = false;
	}
	if(sign == true){
		
		//获取图片高度
		$.each($(".pic"),function(){
			var imgl = new Image();
			imgl.src = $(this).find(".item_img").attr('src');

			var heightl;
			heightl = (200/imgl.width)*imgl.height;
			
			$(this).css('height',heightl);
			$(this).find('.item_img').attr('height',heightl);
		});
		
		//执行超时检查
        setTimeout(function(){
            checkajax();
        },100);
		
		//获取位置
		var spread_position=$("#spread_position").text();
		//插入推广商品
		var itemHTML='<div class="col co xiayijian"><div class="demol_danpin" id="spread" style="overflow:hidden;"></div></div>';
		if(nowPage){
			var s='.co:eq('+(spread_position-1)+')';
			var t=$(s);
			if(t[0]){
				$(s).before(itemHTML);
			}else{
				$container.append(itemHTML);
			}
		}else{
			$container.append(itemHTML);
		}
		var item_info=$("#spread_info").html();
		if(item_info.match('div') || item_info.match('DIV')){
			document.getElementById("spread").innerHTML=item_info;
		}else{
			$(".xiayijian").remove();
		}
		
		function checkajax(){
			//瀑布流布局	
			$container.masonry({
				itemSelector : '.col',
				columnWidth : 238
			});
        }
	}else{
		//获取图片高度
		$.each($(".pic"),function(){
			var imgl = new Image();
			imgl.src = $(this).find(".item_img").attr('src');

			var heightl;
			heightl = (200/imgl.width)*imgl.height;
			
			$(this).css('height',heightl);
			$(this).find('.item_img').attr('height',heightl);
		}); 
		//瀑布流布局
		$container.masonry({
			itemSelector : '.col',
			columnWidth : 238
		});
	}

	/**
	 *加载数据
	 */
	//锁定标识
	var key = true;
	//加载计数
	var i= 1;	
	//窗口绑定滚动事件
	$(window).bind("scroll",function() {
		//高度参数
		var l=$(document).scrollTop() + $(window).height();
		var h=$(document).height();
	    //判断窗口的滚动条是否接近页面底部，自定义500
	    if (l > h - 500 && l < h && key==true) {
	        key = false;
			//获取url
			var url = $("#url").text();
			if(!url){
				return false;
			}
			//获取id
			var id = $("#id").text();
			//获取排序
			var sortby = $(".t_sortby .cur").attr('name');
			//获取价格
			var price = $(".t_price .cur").attr('name');
			//请求页数
			var p = (nowPage-1)*5+i+1;
			//总记录数
			var totalRows = parseInt($(".totalRows").text());
			if(totalRows <= ((nowPage-1)*100)+20 || !p){
				return false;
			}
	  		if (i < 5) {
	  			//显示加载图标，隐藏分页
				$(".loading").show();
				$(".page").hide();
	  			//如果存在的话，用ajax获取数据
	  			$.ajax({
	  				type: "get",
	  				url: url,
	  				data: {id:id, sortby:sortby, price:price, p:p},
	  				success: function(data) {
	  					//隐藏加载图标，显示分页
	  					$(".loading").hide();
	  					$(".page").show();
	  					key = true;
	  					//重新加载js
	  					$.ajax({
	  						url: "__TMPL__Public/js/index.js",
	  						dataType: "script",
	  						global: false
	  					});  					
	  					//获取总页数
	  					var totalPages = $(data).find(".totalPages").text();
	  					//将返回的数据进行处理，挑选出class是co的内容块
	  					var $res = $(data).find(".co");
	  					//获取图片高度
	  					$.each($res.find(".pic"),function(){
	  						var imgl = new Image();
	  						imgl.src = $(this).find(".item_img").attr('src');

	  						var heightl;
	  						heightl = (200/imgl.width)*imgl.height;
							
	  						$(this).css('height',heightl);
	  						$(this).find('.item_img').attr('height',heightl);
	  					}); 
						//替换图片src	 								
	  					$.each($res.find(".item_img"),function(){
		  					$(this).attr('src1',$(this).attr('src'));
		  					$(this).removeAttr('src');
	  					})	
	  					//结合masonry插件，将内容append进ID是content的内容块中
	  					$container.append($res.fadeIn()).masonry('appended', $res);
	  					//加载图片
	  					$.each($res.find(".item_img"),function(){
	  						$(this).attr('src',$(this).attr('src1'));
	  						$(this).removeAttr('src1');
	  					})
	  					//加载4页后显示分页
	  					if (((nowPage-1)*5+i+1) < totalPages) {
	  						i++;
	  					} else {
	  						i=5;
	  					}
	  				}
	  			})
	  		}
	    }
	});
});
</script>
  <div id="spread_status" style="display:none;"><?php echo C('spread_status');?></div>
  <div id="spread_position" style="display:none;"><?php echo C('spread_position');?></div>
  <div id="spread_info" style="display:none;"><?php echo ($spread_info); ?></div>
<div id="container">
<?php if((MODULE_NAME != 'Search') AND (MODULE_NAME != 'Shop')): if($shop_list): ?><div class="col">
<div class="demol_danpin">
	<div class="list_groups">
	<h2 class="dianpuh2">推荐店铺</h2>
<?php if(is_array($shop_list)): $i = 0; $__LIST__ = array_slice($shop_list,0,12,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$voShop): $mod = ($i % 2 );++$i;?><dl>
		<dt><a href="<?php echo get_url('index',$voShop['id'],'shop');?>"><img title="<?php echo ($voShop["name"]); ?>" src=<?php if($voShop['img']): ?>"<?php echo ($voShop["img"]); ?>"<?php else: ?>__TMPL__Public/img/undefined.jpg<?php endif; ?> title="<?php echo ($voShop["name"]); ?>" alt="<?php echo ($voShop["name"]); ?>" /></a></dt>
	</dl><?php endforeach; endif; else: echo "" ;endif; ?>
	</div>
</div>
</div><?php endif; endif; ?>

<?php if(is_array($items_list)): $i = 0; $__LIST__ = $items_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$voItems): $mod = ($i % 2 );++$i;?><div class="col co">
	
      <div class="demol_danpin">
        <div class="info">

          <div class="pic bgload"><a class="item_url" href="<?php echo get_url('index',$voItems['id'],'item');?>" title="<?php echo ($voItems["title"]); ?>"><img class="item_img" alt="<?php echo ($voItems["title"]); ?>" <?php if($voItems['img'] != ''): ?>src="<?php echo (get_img($voItems["img"],210)); ?>"<?php else: ?>src="__TMPL__Public/img/undefined.jpg"<?php endif; ?> width="200"/></a><span class="au"><span class="item_price">￥<?php echo ($voItems["price"]); ?></span><i></i></span>

		  <ul class="op" style="display:none;">
		  	<input type="hidden" name="" id="like_post_action" value="<?php echo get_url('createlike','','user');?>"><input type="hidden" name="" id="like_post_location" value="<?php echo get_url('login','','user');?>">
		  	<li class="s1 like" item_id="<?php echo ($voItems['id']); ?>"><?php if($likes[$voItems['id']] == 1): ?>已喜欢<?php else: ?>喜欢一下<?php endif; ?></li>
            <li class="s2"><a class="add" href="<?php echo get_url('addAlbum',$voItems['id'],'album');?>" target="_blank" style="color:#333333;text-decoration:none">加入专辑</a></li>
          </ul>
		  </div>
          <div class="meta"><span><a class="add" href="<?php echo get_url('index',$voItems['id'],'item');?>#comm" style="text-decoration:none;"><?php echo ($voItems["comments"]); ?> 评论</a></span> <span id="<?php echo ($voItems['id']); ?>"><?php echo ($voItems["likes"]); ?> 喜欢</span></div>
          <div class="whoshare">
            <p class="item_title"><?php echo ($voItems["title"]); ?></p>
          </div>
        </div>
            <div class="replay">
			<dl class="Comment">
            <dt><a href="<?php echo get_url('index',$voItems['uid'],'user');?>"><img onerror="this.src='__PUBLIC__/statics/images/avatar-60.png'" src=<?php if($voItems['userimg'] != ''): ?>"<?php echo C('web_path');?>Uploads/avatar_small/<?php echo ($voItems["userimg"]); ?>"<?php else: ?>"__PUBLIC__/statics/images/avatar-60.png"<?php endif; ?> style="width:30px;"/></a></dt>
            <dd><a class="aur" href="<?php echo get_url('index',$voItems['uid'],'user');?>"><em><?php echo ($voItems["username"]); ?></em></a>分享于<span class="time"><?php echo (date('Y年m月d日 H:i:s',$voItems["add_time"])); ?></span></dd>
          </dl>
		 <?php if(isset($voItems['ablum_info'])): ?><dl class="Comment">
            <dt><a href="<?php echo get_url('index',$voItems['ablum_info']['uid'],'user');?>"><img onerror="this.src='__PUBLIC__/statics/images/avatar-60.png'" src=<?php if($voItems['ablum_info']['img'] != ''): ?>"<?php echo C('web_path');?>Uploads/avatar_small/<?php echo ($voItems["ablum_info"]["img"]); ?>"<?php else: ?>"__PUBLIC__/statics/images/avatar-60.png"<?php endif; ?> style="width:30px;"/></a></dt>
            <dd><a class="aur" href="<?php echo get_url('index',$voItems['ablum_info']['uid'],'user');?>"><?php echo ($voItems["ablum_info"]["uname"]); ?></a> 加入<a class="aur"  href="<?php echo get_url('albumDetail',$voItems['ablum_info']['id'],'user');?>"><strong><?php echo ($voItems["ablum_info"]["title"]); ?></strong></a>专辑</dd>
          </dl><?php endif; ?>
		  <?php if(isset($voItems['commnets_info'])): ?><dl class="Comment">
            <dt><a href="<?php echo get_url('index',$voItems['commnets_info']['uid'],'user');?>"><img onerror="this.src='__PUBLIC__/statics/images/avatar-60.png'" src=<?php if($voItems['commnets_info']['img'] != ''): ?>"<?php echo C('web_path');?>Uploads/avatar_small/<?php echo ($voItems["commnets_info"]["img"]); ?>"<?php else: ?>"__PUBLIC__/statics/images/avatar-60.png"<?php endif; ?> style="width:30px;" /></a></dt>
            <dd><a class="aur" href="<?php echo get_url('index',$voItems['commnets_info']['uid'],'user');?>"><?php echo ($voItems["commnets_info"]["name"]); ?>：</a><?php echo ($voItems["commnets_info"]["info"]); ?></dd>
          </dl><?php endif; ?>
        </div>
      </div>
    </div><?php endforeach; endif; else: echo "" ;endif; ?>

</div>
  <div class="loading" style="width:32px;height:32px;margin:0 auto;display:none;"><img src="__PUBLIC__/statics/images/loading_d.gif"></div>
  <div class="page"><?php echo ($page); ?></div>
 
</div>
 <?php if(get_ad(4) != ''): ?><br>
  <center> <div style="width:970px;height:90px;overflow:hidden;margin-bottom:15px;"><?php echo get_ad(4);?></div></center><?php endif; ?>
<div id='url' style="display:none;"><?php echo C('web_path');?>index.php?a=<?php echo ACTION_NAME;?>&m=Public&g=Home</div>
<div id='id' style="display:none;"><?php echo ($_GET['id']); ?></div>
  </div>
<div class="sitemap">
  <dl>
    <dt>网站地图</dt>
    <?php if(is_array($p_cate_list)): $i = 0; $__LIST__ = $p_cate_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$cval): $mod = ($i % 2 );++$i;?><dd><a href="<?php echo get_url('index',$cval['id'],'cate');?>">发现<?php echo ($cval["name"]); ?></a></dd><?php endforeach; endif; else: echo "" ;endif; ?>
  </dl>
  <dl>
    <dt>关注我们</dt>
    <dd><?php echo strclean(C('follow_us')); ?></dd>
    <dd><?php echo strclean(C('follow_us2')); ?></dd>
    <dd><?php echo strclean(C('follow_us3')); ?></dd>
    <dd><?php echo strclean(C('follow_us4')); ?></dd>
    <dd><?php echo strclean(C('follow_us5')); ?></dd>
    <dd><?php echo strclean(C('follow_us6')); ?></dd>
  </dl>
  <dl>
    <dt></dt>
    <dd><a href="<?php echo C('site_domain');?>"><img src="__PUBLIC__/statics/images/logo_bot.gif" width="120"></a></dd>
  </dl>
  <dl>
    <dt>网站相关</dt>
    <dd><a href="__PUBLIC__/statics/sitemap.html" target="_blank">网站地图</a></dd>
    <dd><a href="__PUBLIC__/statics/sitemap.xml" target="_blank">sitemap</a></dd>
    <dd><?php echo strclean(C('site_icp')); ?></dd>
    <dd><?php echo strclean(C('statistics_code')); ?></dd>
  </dl>
  <dl>
    <dt>友情链接</dt>
	  <?php if(is_array($linkList)): $i = 0; $__LIST__ = $linkList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><dd><a href="<?php echo ($val["url"]); ?>" target="_blank"><?php echo ($val["name"]); ?></a></dd><?php endforeach; endif; else: echo "" ;endif; ?>
  </dl>
</div>
<div style="display:none;" id="gotopbtn" class="back2top"><a href="javascript:void(0);"></a></div>
<script type="text/javascript">
$(function() {
		$(".back2top").click(function() {
			$("html, body").animate({ scrollTop: 0 }, 120);
	}), $backToTopFun = function() {
		var st = $(document).scrollTop(), winh = $(window).height();
		(st > 0)? $(".back2top").show(): $(".back2top").hide();    
		//IE6下的定位
		if (!window.XMLHttpRequest) {
			$(".back2top").css("top", st + winh - 166);    
		}
	};
	$(window).bind("scroll", $backToTopFun);
	$(function() { $backToTopFun(); });
});
</script>
<!--[if lte IE 6]>
<script src="__TMPL__Public/js/DD_belatedPNG_0.0.8a-min.js"></script>
<script>DD_belatedPNG.fix('div.au span,div.au i,span.au span,span.au i,h1.logo');</script>
<![endif]-->
</body>
</html>